package com.findmeastore.action;

import java.util.List;

import com.findmeastore.bc.IBrandBc;
import com.findmeastore.bc.ILocalityBc;
import com.findmeastore.bo.CityBo;
import com.findmeastore.bo.StateBo;
import com.findmeastore.dto.BrandDto;

public class HelloWorld {

    private String message;
    private String userName;
    private List<StateBo> states;
    private List<CityBo> cityBos;
    private ILocalityBc localityBc;
    private IBrandBc brandBc;

    public String execute()
    {
//    	setStates(localityBc.getAllStates());
    	BrandDto dto = new BrandDto();
    	dto.setName("FNike");
    	dto.setModifiedById(1);
    	dto.setId(3);
    	brandBc.saveBrand(dto);
    	setCities(localityBc.getAllCities());
        setMessage((new StringBuilder()).append("Hello ").append(getUserName()).toString());
        return "SUCCESS";
    }

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    
	public List<StateBo> getStates() {
		return states;
	}

	public void setStates(List<StateBo> states) {
		this.states = states;
	}

	public ILocalityBc getLocalityBc() {
		return localityBc;
	}

	public void setLocalityBc(ILocalityBc localityBc) {
		this.localityBc = localityBc;
	}

	public List<CityBo> getCities() {
		return cityBos;
	}

	public void setCities(List<CityBo> cityBos) {
		this.cityBos = cityBos;
	}

	public IBrandBc getBrandBc() {
		return brandBc;
	}

	public void setBrandBc(IBrandBc brandBc) {
		this.brandBc = brandBc;
	}

}
